package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.MmailWorkForm;
import com.xhh.nphm.system.domain.TtelGetDealEty;
import com.xhh.nphm.system.domain.TworkFormBaseEty;
import com.xhh.nphm.system.mapper.TelGetDealDao;
import com.xhh.nphm.system.mapper.WorkFormBaseDao;
import com.xhh.nphm.system.service.ILookupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LookupServiceImpl extends ServiceImpl<WorkFormBaseDao, TworkFormBaseEty> implements ILookupService {
    @Autowired
    private TelGetDealDao telGetDealDao;

    @Override
    public List<TworkFormBaseEty> telWFList(TworkFormBaseEty tworkFormBaseEty) {
        return getBaseMapper().telWFAll(tworkFormBaseEty);
    }

    @Override
    public List<MmailWorkForm> mailWFList(MmailWorkForm mmailWorkForm) {
        return getBaseMapper().mailWFList(mmailWorkForm);
    }

    /**
     * 通话记录列表数据
     *
     * @param ttelGetDealEty 封装查询条件
     * @return 列表数据
     */
    @Override
    public List<TtelGetDealEty> telGetAllList(TtelGetDealEty ttelGetDealEty) {
        return telGetDealDao.telGetAllList(ttelGetDealEty);
    }

    /**
     * 查询电话工单抄送件列表数据
     *
     * @param tworkFormBaseEty 查询条件
     * @param deptId           部门编号
     * @return 列表数据
     */
    @Override
    public List<TworkFormBaseEty> telCopyList(TworkFormBaseEty tworkFormBaseEty, Long deptId) {
        return getBaseMapper().telCopyList(tworkFormBaseEty,deptId);
    }
}
